package com.hoshiicloud.market.entity.market;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 活动明细
 * </p>
 *
 * @author campchen
 * @since 2019-05-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("marketing_detail")
public class MarketingDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
    * 活动ID
    */
    @TableField("marketid")
    private Long marketid;


    /**
    * spu
    */
    @TableField("spu_id")
    private Long spuId;


    /**
    * sku
    */
    @TableField("sku_id")
    private Long skuId;


    /**
    * 单人限购数量
    */
    @TableField("per_limits")
    private Long perLimits;


    /**
    * 总限购数量
    */
    @TableField("limits")
    private Long limits;


    /**
    * 原价格
    */
    @TableField("unitprice")
    private BigDecimal unitprice;


    /**
    * 折扣价
    */
    @TableField("discount")
    private BigDecimal discount;


    /**
    * 奖励积分数
    */
    @TableField("reward_points")
    private Long rewardPoints;


    /**
    * 奖励购物券张数
    */
    @TableField("reward_coupon")
    private Long rewardCoupon;


    /**
    * 购物券面额
    */
    @TableField("coupon_price")
    private BigDecimal couponPrice;


    /**
    * 制单人
    */
    @TableField("createdby")
    private String createdby;


    /**
    * 建立时间
    */
    @TableField("createdtime")
    private LocalDateTime createdtime;


    /**
    * 修改人
    */
    @TableField("updatedby")
    private String updatedby;


    /**
    * 修改时间
    */
    @TableField("updatedtime")
    private LocalDateTime updatedtime;


    /**
    * 是否删除
    */
    @TableField("deleted")
    private Integer deleted;



}
